package org.yscz.common;

import org.springframework.format.annotation.DateTimeFormat;
import org.yscz.task.AbnormalEmotion;

import java.util.*;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.atomic.AtomicInteger;

/**
 *
 */
public class ViewConfig {

    /**
     * 表情帧数存放集合
     */
    public static List<Integer> framesList = new ArrayList<>();

    /**
     * 异常表情帧数集合
     */
    public static List<AbnormalEmotion> abnormalEmotionList = new CopyOnWriteArrayList<>();

    /**
     * 连续小于异常值的帧数
     */
    public static Integer lessThanAbnormalNum = 0;

    /**
     * 异常表情次数 总数
     */
    public static AtomicInteger exceptionEmotionTotalNum = new AtomicInteger(0);

    /**
     * 异常表情答题 总数
     */
    public static AtomicInteger exceptionQuestionTotalNum = new AtomicInteger(0);

    /**
     * 每一道题的异常表情次数
     */
    public static AtomicInteger everyQuestionExceptionNum = new AtomicInteger(0);

    /**
     * 分钟的计数
     */
    public static AtomicInteger minuteNum = new AtomicInteger(0);

    /**
     * 每一分钟的异常表情次数
     */
    public static AtomicInteger everyMinuteExceptionNum = new AtomicInteger(0);

    /**
     * 当前题目的下标
     */
    public static AtomicInteger currentQuestIndex = new AtomicInteger(1);

    /**
     * 每一题的答题时间
     */
    public static Integer answerTime = 0;

    /**
     * 存放间断帧数
     */
    public static Map<String, Integer> map = new HashMap<>();

    /**
     * 测评记录Uuid
     */
    public static Long recordId;

    /**
     * 答题的编号
     */
    public static Integer questionNum;

    /**
     * 异常答题数标志位
     */
    public static Boolean exceptionTimeFlag = true;

    /**
     *  拍照推流uuid的缓存
     */
    public static String mediaStartCacheUuid;



}
